#region Copyright
/// <copyright>
/// Copyright (c) 2007 Ilia Shramko.
/// Released under the terms of the GNU General Public License.
/// </copyright>
#endregion

using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace Osh.Teletext
{
	public abstract class TeletextWriter
	{
		public virtual void WriteStartRow(int row)
		{
		}

		public virtual void WriteEndRow()
		{
		}

		public virtual void WriteStartColumnBlock(int column, RowState state)
		{
		}

		public virtual void WriteEndColumnBlock()
		{
		}

		public virtual void WriteChars(char[] buffer, int offset, int count)
		{
			for(int i = offset; count-- > 0; i++)
				WriteChar(buffer[i]);
		}

		public virtual void WriteChar(char ch)
		{
		}

		public virtual void Flush()
		{
		}

		public virtual void Close()
		{
		}
	}
}
